/**
 * @see 该界面是“学生界面”的考勤记录
 */
Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    courseData: {
      type: Array,
      value: []
    }
  },
  methods: {
    /**
     * @see 进入“考勤记录详情”
     */
    goToRecord (e) {
      let recordItem = JSON.stringify(e.currentTarget.dataset.item)
      let recordIndex = e.currentTarget.dataset.index
      wx.navigateTo({
        url: `/pages/schoolStudy/signInManage/student/attendanceRecordsDetails/index?item=${recordItem}&index=${recordIndex}`
      })
    }
  }
})